import com.saxon.Dao.studentMapper;
import com.saxon.Dao.teacherMapper;
import com.saxon.pojo.Student;
import com.saxon.pojo.Teacher;
import com.saxon.util.MybatisUnit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class test {
    @Test
    public void testSql(){
        SqlSession sqlSession = MybatisUnit.getSqlSession ();
        teacherMapper mapper = sqlSession.getMapper (teacherMapper.class);
        Teacher teacher = mapper.getTeacher (1);
        System.out.println (teacher);
        sqlSession.close ();
    }
}
